package com.ddl.eurekaclient.strategyMode;

public class AdvancedMemberStrategy implements Strategy {

	private Double money;

	private Double subMoney;

	public AdvancedMemberStrategy(Double money, Double subMoney) {
		this.money = money;
		this.subMoney = subMoney;
	}

	@Override
	public Double getResult() {

		if (money > subMoney) {
			return money - subMoney;
		}
		return money;
	}
}
